package com.letoken.platform.repo.app.res.token;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author letokenlabs
 * @date 2022/11/23$
 */
@Data
@ApiModel(value = "查询周期流通量返回对象", description = "查询周期流通量返回对象")
public class WaitCirculationRes {


    @ApiModelProperty(name = "round", value = "第几期")
    private Integer round;

    @JsonDeserialize(using= LocalDateTimeDeserializer.class)
    @JsonSerialize(using= LocalDateTimeSerializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "dateTime", value = "流通时间")
    private LocalDateTime dateTime;

    @ApiModelProperty(name = "letNum", value = "let数量")
    private BigDecimal letNum;


}
